<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>7.[10,20,30].map(parseInt)</title>
</head>

<body>
  [10,20,30].map(parseInt)

  <script>
    // const arr = [10,20,30].map(parseInt)
    // console.log(arr);

    // 拆解
    // parseInt(num, 基数) 返回一个(设定好基数)十进制数
    [10, 20, 30].map((num, index) => {
      return parseInt(num, index)
    })

  </script>

</body>

</html>